package org.springframework.security.oauth2.provider.token;

import java.util.Map;

import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.provider.OAuth2Authentication;

@Deprecated
public interface AccessTokenConverter {

	String AUD = "aud";

	String CLIENT_ID = "client_id";

	String EXP = "exp";

	String JTI = "jti";
	
	String GRANT_TYPE = "grant_type";

	String ATI = "ati";

	String SCOPE = OAuth2AccessToken.SCOPE;

	String AUTHORITIES = "authorities";

	Map<String, ?> convertAccessToken(OAuth2AccessToken token, OAuth2Authentication authentication);

	OAuth2AccessToken extractAccessToken(String value, Map<String, ?> map);

	OAuth2Authentication extractAuthentication(Map<String, ?> map);
}